package com.athuahua.spzx.service;

import com.athuahua.spzx.entity.UserAddress;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author huahua
* @description 针对表【user_address(用户地址表)】的数据库操作Service
* @createDate 2024-08-17 23:04:51
*/
public interface UserAddressService extends IService<UserAddress> {

    /**
     * 查询用户地址列表
     * @return
     */
    List<UserAddress> findUserAddressList();

    /**
     * 查询用户地址
     * @param parentCode
     * @return
     */
    UserAddress findUserAddressById(Integer parentCode);

    /**
     * 更新用户地址
     * @param userAddress
     */
    void iUpdateById(UserAddress userAddress);

    /**
     * 保存用户地址
     * @param userAddress
     */
    void iSave(UserAddress userAddress);
}
